(function (aopc) {
    aopc.addExpandPage(865, function (get) {
        const Bridge = get('UtilsCommon', 'Bridge');
        return {
            expandInit() {
                this.isBranchPage = true;
                this.second_count = this.getProperty('second_count');
            },
            componentDidmount() {
                let count = 5;
                this.intervalId = setInterval(() => {
                    count--;
                    if (count === 0) {
                        clearInterval(this.intervalId);
                        Bridge.jsToNative('closeDialog');
                    }
                    else this.second_count.setValue(count);
                }, 1000);
            }
        }
    });
})(window.aopc);